Contents | Index | < Browse | Browse >
LETTERsscanfULETTER
Reads formatted input out of a string.
Overview
#include <stdio.h>
int sscanf(char *s, const char *format, ...);
int r;
char *s;
const char *format;
Portability
ANSI
Description
Similarly to scanf, this function reads characters and interprets
them according to the input format template. The only
difference is that sscanf does not read these chars from stdin, but from the
string *s.
The format template "format" is followed by a sequence of pointers required to
store the data read.
Returns
The number of data (strings, numbers etc.) read.
See also
scanf , fscanf , sprintf